package demo2;

public class Student {
    private String name;
    public int age;
    public String gender;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void print() {
        System.out.println("名字：" + name + " 年龄："
        + age + " 性别：" + gender);
    }
}
